﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Tuto.Tools
{
    /// <summary>
    ///     This class handle email validation exceptions
    /// </summary>
    public class EmailException : Exception
    {
        public EmailException(string _mgs) 
            : base(_mgs)
        {
            //
            Console.ForegroundColor = ConsoleColor.Red;
            Console.Out.WriteLine(" >> Email validation error : " + _mgs);
        }

        public EmailException(string _mgs, Exception innertException)
            : base(_mgs, innertException)
        {
            //
        }
    }
}
